<?php

class Application_Form_Stop extends Zend_Form
{

    public function init()
    {
        $this->setName('Stop');
		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');

		$name = new Zend_Form_Element_Text('name');
		$name->setLabel('Name')
				->setRequired(true)
				->addFilter('StripTags')
				->addFilter('StringTrim')
				->addValidator('NotEmpty');
		

		$lat = new Zend_Form_Element_Text('latitude');
		$lat->setLabel('Latitude')
			->setRequired(true)
			->addFilter('StripTags')
			->addFilter('StringTrim')
			->addValidator('NotEmpty');
		
		
		$lon = new Zend_Form_Element_Text('longitude');
		$lon->setLabel('Longitude')
			->setRequired(true)
			->addFilter('StripTags')
			->addFilter('StringTrim')
			->addValidator('NotEmpty');
      
		

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton');
		$this->addElements(array($id, $name,$lat,$lon,$submit));
    }


}

